package string;

public class StartendwithDemo {
    public static void main(String[] args) {
        String url = "http//:doc.canglaoshi.org/index.html";
        boolean b1 = url.startsWith("https");
        boolean b2 = url.endsWith("index.html");
        System.out.println(b1);//false
        System.out.println(b2);//true
    }
}

